import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/global.css'

import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

app.use(router)
app.use(ElementPlus,{
    locale:zhCn,
})
// main.ts

// 如果您正在使用CDN引入，请删除下面一行。
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

window.addEventListener('load', () => {
    console.log('强制清除所有存储')
    localStorage.clear()
    sessionStorage.clear()
})

app.mount('#app')
